package com.ruoyi.produce.process.costApportionment.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;
import java.util.List;

/**
 * 在产成本费用分摊实体类
 * 对应数据库字段 produce_cost_apportionment
 * @author lsy 2020.8.26
 * 修改：
 */
@Data
public class CostApportionmentDomain {
    /**
     * 成本分摊编号
     */
    @NotNull(message = "成本分摊编号不能为空")
    @ApiModelProperty(value = "成本分摊编号", required = true)
    private String costApportionmentId;

    /**
     * 创建人编号
     */
    @NotNull(message = "创建人编号不能为空")
    @ApiModelProperty(value = "创建人编号", required = true)
    private String staffId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remark;

    /**
     * 在产成本费用分摊详细
     */
    @ApiModelProperty("在产成本费用分摊详细")
    private List<CostApportionmentListDomain> costApportionmentLists;
}
